// 集中管理接口
import http from "@/utils/request";

export const indexData=()=>http.get("/prod/index")// 首页

export const detData=(params)=>http.get("/prod/det",{params})//详情页 为了拼问号传参

export const cateDate=()=>http.get("/prod/cate")//分类

export const userData=params=>http.post("/user/login",params)//登录

export const addCar=params=>http.post("/user/addcar",params)//加入购物车

export const carDate=(params)=>http.get("/user/querycar",{params})//查询购物车

export const delCar=params=>http.get("/user/delcar",params)//删除购物车

export const Modify=params=>http.get("/user/modify",params)//修改购物车商品数量

export const setState=params=>http.get("/user/setstate",params)//修改购物车商品状态

export const payData=params=>http.post("/user/pay",params)//结算

export const orderData = params => http.get("/user/order", { params })//查看订单


